#include<stdio.h>
int main()
{
	int n,t,sum=0;
	while( (scanf("%d",&n))!=EOF )
	{
		while(n--)
		{
			scanf("%d",&t);
			sum+=t;
		}
		printf("%d\n",sum);
		sum=0;
	}
	return 0;
}
